package com.ruoyi.statistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.statistics.mapper.StatisticsPeopleMapper;
import com.ruoyi.statistics.domain.StatisticsPeople;
import com.ruoyi.statistics.service.IStatisticsPeopleService;
import com.ruoyi.common.core.text.Convert;

/**
 * 应用人员 服务层实现
 * 
 * @author ruoyi
 * @date 2019-11-11
 */
@Service
public class StatisticsPeopleServiceImpl implements IStatisticsPeopleService 
{
	@Autowired
	private StatisticsPeopleMapper statisticsPeopleMapper;

	/**
     * 查询应用人员信息
     * 
     * @param id 应用人员ID
     * @return 应用人员信息
     */
    @Override
	public StatisticsPeople selectStatisticsPeopleById(Long id)
	{
	    return statisticsPeopleMapper.selectStatisticsPeopleById(id);
	}
	
	/**
     * 查询应用人员列表
     * 
     * @param statisticsPeople 应用人员信息
     * @return 应用人员集合
     */
	@Override
	public List<StatisticsPeople> selectStatisticsPeopleList(StatisticsPeople statisticsPeople)
	{
	    return statisticsPeopleMapper.selectStatisticsPeopleList(statisticsPeople);
	}
	
    /**
     * 新增应用人员
     * 
     * @param statisticsPeople 应用人员信息
     * @return 结果
     */
	@Override
	public int insertStatisticsPeople(StatisticsPeople statisticsPeople)
	{
	    return statisticsPeopleMapper.insertStatisticsPeople(statisticsPeople);
	}
	
	/**
     * 修改应用人员
     * 
     * @param statisticsPeople 应用人员信息
     * @return 结果
     */
	@Override
	public int updateStatisticsPeople(StatisticsPeople statisticsPeople)
	{
	    return statisticsPeopleMapper.updateStatisticsPeople(statisticsPeople);
	}

	/**
     * 删除应用人员对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteStatisticsPeopleByIds(String ids)
	{
		return statisticsPeopleMapper.deleteStatisticsPeopleByIds(Convert.toStrArray(ids));
	}
	
}
